import React from 'react';
import { render } from 'react-dom';
import {Provider} from 'react-redux'
import { StaticRouter as Router, Route, Switch } from 'react-router-dom';

import store from './stores/configureStore';
import App from 'container/App';
import NotMatch from 'components/notMatch/index';

// 打印运行环境
console.log(process.env.NODE_ENV);

const Root = (ctx) => (
  <Provider store={store}>
    <Router location={ctx.path}>
      <Switch>
        <App />
        <Route component={ NotMatch } />
      </Switch>
    </Router>
  </Provider>
);